import HomeView from "../views/HomeView.vue";

export const routes = [
  {
    path: "/",
    name: "home",
    meta: { title: "欢迎来到工具库", KeepAlive: false },
    component: HomeView,
    children: [
      {
        path: "docs",
        name: "home_docs",
        meta: { title: "文档" },
        component: () => import("@/views/home/docs.vue"),
      },
      {
        path: "bookmarks",
        name: "home_bookmarks",
        meta: { title: "书签" },
        component: () => import("@/views/home/bookmarks.vue"),
      },
    ],
  },
  {
    path: "/tools",
    name: "tools",
    meta: { title: "工具菜单" },
    component: () => import("@/views/tools/index.vue"),
    children: [
      {
        path: "excel",
        name: "tools_excel",
        meta: { title: "excel数据导入导出" },
        component: () => import("@/views/tools/excel.vue"),
      },
      {
        path: "fonts",
        name: "tools_fonts",
        meta: { title: "字体压缩" },
        component: () => import("@/views/tools/fonts.vue"),
      },
      {
        path: "qrcode",
        name: "tools_qrcode",
        meta: { title: "二维码生成" },
        component: () => import("@/views/tools/qrcode.vue"),
      },
      {
        path: "iframe",
        name: "tools_iframe",
        meta: { title: "外部工具链接" },
        component: () => import("@/views/tools/iframe.vue"),
      },
    ],
  },
  // {
  //   path: "/about",
  //   name: "about",
  //   meta: { title: "关于工具库", KeepAlive: false },
  //   component: () => import("@/views/AboutView.vue"),
  // },
];
